package com.yiwei.zxp.api.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by xsooy-pc on 18-8-1.
 */

public class ItemGoodsDetail implements Parcelable {
    public String title;
    public String goods_id;
    public String goods_no;
    public String price;
    public String num;
    public String deliver_fee;
    public List<String> photos;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.title);
        dest.writeString(this.goods_id);
        dest.writeString(this.goods_no);
        dest.writeString(this.price);
        dest.writeString(this.num);
        dest.writeString(this.deliver_fee);
        dest.writeStringList(this.photos);
    }

    public ItemGoodsDetail() {
    }

    protected ItemGoodsDetail(Parcel in) {
        this.title = in.readString();
        this.goods_id = in.readString();
        this.goods_no = in.readString();
        this.price = in.readString();
        this.num = in.readString();
        this.deliver_fee = in.readString();
        this.photos = in.createStringArrayList();
    }

    public static final Creator<ItemGoodsDetail> CREATOR = new Creator<ItemGoodsDetail>() {
        @Override
        public ItemGoodsDetail createFromParcel(Parcel source) {
            return new ItemGoodsDetail(source);
        }

        @Override
        public ItemGoodsDetail[] newArray(int size) {
            return new ItemGoodsDetail[size];
        }
    };
}
